Documentation > CMS Template API Library > Input > ShowAutoCompleteBox(String,String,Dictionary[String,String],Int32,String,String,Boolean)
ShowAutoCompleteBox
Adds an autocompletebox control to the input screen.
public System.Void ShowAutoCompleteBox(String,String,Dictionary[String,String],Int32,String,String,Boolean)
Parameters
Name | Description | Type |
---|---|---|
label | The label of the field when displayed. | System.String |
fieldName | The field name where the value will be stored. | System.String |
values | A dictionary. displays keys, but values are actually saved on submission | Dictionary<String,String> |
width | Optional: approximate width in characters. | System.Int32 |
helpMessage | Optional: help message | System.String |
popupMessage | Optional: The popup help message. | System.String |
alwaysSend | Optional: If true, the value of the field will always be sent from the frontend to the backend regardless of whether its state has changed. | System.Boolean |
Code Example
C#
Sample:
Input.ShowAutoCompleteBox("Label","field",new Dictionary<string, string>(){{"akey","value1"},{"bkey","value2"},{"ckey","value3"}});